package cn.com.bsoft.cloud.service;


import cn.com.bsoft.cloud.entity.cloud.PrescriptionMess;
import cn.com.bsoft.cloud.entity.cloud.Site;
import cn.com.bsoft.cloud.entity.company.CompanyMess;
import cn.com.bsoft.cloud.entity.company.PTCompanyMess;
import cn.com.bsoft.cloud.entity.param.DeliveryParam;
import cn.com.bsoft.cloud.entity.param.DrugListParam;

import java.util.List;
import java.util.Map;

public interface CloudCompanyService {

    List<PrescriptionMess> queryDrugList(DrugListParam param);

    Map<String,Object> updateDeliveryStatu(DeliveryParam param);

    List<Site> querySitesByCode(String hoscode);

    List<CompanyMess> queryCompanyMess(String companyCode);

    Boolean updateCompanyMess(String companyCode,String companyName,String secret, String publickey);

    Boolean addCompanyMess(String companyCode, String companyName, String secret, String publickey);

    String findCompanyNameByCode(String companyCode);

    String findCompanyPubkey();

    //查询医药公司公钥
    String getPublicKey(String hoscode);

    //查询平台私钥
    String getPrivateKey();

    //查询医药公司secret
    String getSecret(String hoscode);

    PTCompanyMess getCompanyMess(String hoscode);


    List<Site> queryAllSiteMess();

    void updateAddressByCode(String siteCode,String siteName, String address);

    List<Site> queryHosList();

    List<Site> querySiteByCode(String hosCode);

    void addSiteMess(String hosCode, String hosName, String siteCode, String siteName, String address);

    String findSiteBySitecode(String siteCode);

    void delSiteMessByCode(String siteCode);


}
